AmpProject\AmpWP\PairedRouting D

Total Complexity 142
Dependencies 20
Dependents 6
Total lines 1,139
Lines of code 602
Logical lines of code 266
Comment lines 400
Methods 33
Properties 9

Methods 33

Method Rating Maintainability Complexity Lines of code
get_endpoint_path_slug_conflicts()
C
31 23 116
get_custom_paired_structure_sources()
A
45 12 42
redirect_extraneous_paired_endpoint()
A
51 13 26
correct_query_when_is_front_page()
A
53 8 23
has_endpoint()
S
53 7 25
filter_default_options()
S
53 7 23
get_paired_url_examples()
S
49 6 34
filter_redirect_canonical_to_fix_cpage_requests()
S
55 5 21
restore_path_endpoint_in_environment()
S
54 5 21
extract_endpoint_from_environment_before_parse_request()
S
58 5 16
get_paired_url_structure()
S
58 5 15
filter_get_pagenum_link()
S
53 4 26
detect_endpoint_in_environment()
S
58 4 16
initialize_paired_request()
S
57 4 15
filter_unique_post_slug()
S
55 3 22
filter_rest_options()
S
57 3 17
add_paired_request_hooks()
S
61 3 12
get_all_structure_paired_urls()
S
62 3 11
sanitize_options()
S
63 3 11
add_permalink_settings_notice()
S
56 2 20
filter_rest_options_schema()
S
54 1 27
filter_request_after_endpoint_extraction()
S
71 2 6
check_stale_late_defined_slug_option()
S
70 2 6
get_late_defined_slug()
S
79 2 3
maybe_add_paired_endpoint()
S
72 2 6
register()
S
62 1 10
is_using_permalinks()
S
79 1 3
is_using_path_suffix()
S
66 1 10
add_endpoint()
S
80 1 3
remove_endpoint()
S
80 1 3
has_custom_paired_url_structure()
S
80 1 3
update_late_defined_slug_option()
S
80 1 3
__construct()
S
69 1 7